/**
 * Author: DarknessShadow
 * description:
 * Create Time: 2020/5/28 9:52
 */
public class Main {
    public static void main(String[] args) {
        try {
            System.out.println("Making root entries............");
            Directory rootdir = new Directory("root");
            Directory bindir = new Directory("bin");
            Directory temdir = new Directory("tmp");
            Directory usrdir = new Directory("usr");
            rootdir.add(bindir);
            rootdir.add(temdir);
            rootdir.add(usrdir);
            bindir.add(new File("yi", 1000));
            bindir.add(new File("latex", 200000));

            System.out.println("");
            System.out.println("Making user entries......");
            Directory yuki = new Directory("yuki");
            Directory hanako = new Directory("tomura");
            Directory tomuura = new Directory("tomura");
            usrdir.add(yuki);
            usrdir.add(hanako);
            usrdir.add(tomuura);
            yuki.add(new File("diary.html", 1000));
            rootdir.printList();
        } catch (Exception e) {
            System.err.println();
        }
    }
}
